  <table class="cms_browsetext" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr>
              <th align="left" >Title</th>
              <th align="left">&nbsp;</th>
              <th width="75" align="left">Action</th>
            </tr>
<?

	//$returnURL = $_SERVER['PHP_SELF'] . "?fileNo=1&formid=" . $formid ."&sorts=clear&direction=clear&pageNumber=$pageNumber";
	//$cancelURL = $returnURL;
	
	$cmsDocument->resetIterator();
	while ($organisation = $cmsDocument->nextDocument()){
		$organisationName = magicClean($organisation->title);
		$organisationDscription = magicClean($organisation->shortdescription);
		$organisationPhone = magicClean($organisation->authordepartment);
		$organisationFax = magicClean($organisation->organisationalname);
		$organisationEmail = magicClean($organisation->authorbio);
		$organisationUrl =  magicClean($organisation->phone);
		
		$editUrl = $_SERVER['PHP_SELF'] . '?fileNo=2&documentCode=' . $organisation->documentcode;
		$deleteUrl = $_SERVER['PHP_SELF'] . '?fileNo=4&documentCode=' . $organisation->documentcode . '&returnURLEncoded=' . urlencode($returnURL). '&cancelURLEncoded=' . urlencode($cancelURL);

		print <<< EOD
            <tr > 
              <td align="left" colspan="3"><img height="7" src="/cms/images/greyline.gif" width="100%" /></td>
            </tr>
            
            <tr> 
              <td class="cms_browsetext" colspan="3" ><b>$organisationName</b><br>
                $organisationDscription</td>
            </tr>

            <tr> 
              <td colspan="2" class="cms_browsetext"  >P: $organisationPhone | F: $organisationFax | E: <a href="mailto:$organisationEmail">$organisationEmail</a> | W: <a href="$organisationUrl" target="_blank">$organisationUrl</a></td>
				<td class="cms_browsetext" width="75" style="text-align: left; vertical-align: bottom;">

EOD;
		if(editFormAuth($authInfo, $formDescription, $organisation->documentcode, $db)) {
			print <<< EOD
<a href="$editUrl">Edit</a> 
EOD;
		}
		if(deleteFormAuth($authInfo, $formDescription, $organisation->documentcode, $db)) {
			print <<< EOD
      / <a href="$deleteUrl">Delete</a>
EOD;
		}
print <<< EOD
				</td>

              </tr>			
EOD;
	}

?>
    <tr> 
      <td align="left" colspan="3"><img height="7" src="/cms/images/greyline.gif" width="100%" /></td>
    </tr>
</table>